#define _CRT_SECURE_NO_WARNINGS 1
#pragma once
#include<iostream>
#include<string>
using namespace std;
int main()
{

	string str1("https://mpbeta.csdn.net/mp_blog/creation/editor/149031346");
	int pos = 0;
	string protocol;
	pos = str1.find(':', 0);
	if (pos != string::npos)
	{
		protocol = str1.substr(0, pos);
	}
	cout << protocol;
	cout << endl;
	
	pos += 3;
	int pos2 = pos;
	pos = str1.find('/', pos);

	string domain;
	if(pos != string::npos)
	{
		domain = str1.substr(pos2, pos - pos2);
	}
	cout << domain;
	cout << endl;

	pos += 1;
	string url = str1.substr(pos);
	cout << url;
	
	return 0;
}